package example01;

/**
 * @Author 幻忧
 * @Date 2020/12/13 18:02
 * @Version 1.0
 * @Description 皇帝类
 */
public class Emperor {

    //初始化一个皇帝
    private static final Emperor emperor = new Emperor();

    private Emperor() {
    }

    public static Emperor getInstance() {
        return emperor;
    }

    //皇帝发话了
    public static void say() {
        System.out.println("我就是皇帝某某某....");
    }


}
